import request from '@/utils/request'

// 查询车辆进入记录列表
export function listCarRecords(query) {
  return request({
    url: '/doorcontrol/carRecords/list',
    method: 'get',
    params: query
  })
}

// 查询车辆进入记录详细
export function getCarRecords(id) {
  return request({
    url: '/doorcontrol/carRecords/' + id,
    method: 'get'
  })
}

// 新增车辆进入记录
export function addCarRecords(data) {
  return request({
    url: '/doorcontrol/carRecords',
    method: 'post',
    data: data
  })
}

// 修改车辆进入记录
export function updateCarRecords(data) {
  return request({
    url: '/doorcontrol/carRecords',
    method: 'put',
    data: data
  })
}

// 删除车辆进入记录
export function delCarRecords(id) {
  return request({
    url: '/doorcontrol/carRecords/' + id,
    method: 'delete'
  })
}
